#pragma once

#include "..\Common\Plugin.h"

class CFilePlugin : public IPlugin
{
public:
	CFilePlugin();
	~CFilePlugin();

	void SetServer(LPCWSTR lpServerRoot) override;
	bool VisitDir(LPCWSTR lpRemotePath, IDirVisitorPtr pCallback) override;
	bool ReadFile(LPCWSTR lpRemotePath, IFileReaderPtr pCallback, INT64 nOffset, INT64 nLength) override;

private:
	std::wstring m_strServerRoot;
};
